package com.cdlj.moes.common;


public class Constants {

    // Define for constant
    public static final String APP_TAG = "MOES";
    public static final String APP_ROOT_PATH = "/MOES";
    public static final int APP_CONNECTION_TIMEOUT = 30 * 1000;
    public static final int APP_SOCKET_TIMEOUT = 30 * 1000;
    public static final int REFRESH_DEFAULT_TIME = 10 * 1000;

    // Define for URL
    public static final String MOES_SERVER_URL = "http://localhost:8080/MOESServer";
    public static final String SIGN_IN_URL = "/registUser";
    public static final String LOGIN_URL = "/userLogin";
 
    public static final String GET_GOOGLE_GPS_COORDINATE_URL = "http://maps.googleapis.com/maps/api/geocode/json?address=+{0},+singapore&sensor=true";
    public static final String GET_LOCATION_NAME_URL = "http://maps.googleapis.com/maps/api/geocode/json?latlng={0},{1}&sensor=true";

    // Define for returned message
    public static final String MSG_CODE = "msgCode";
    public static final String TOTAL_RECORD_NO = "totalRecordNo";
    public static final String RESULT_LIST = "resultList";
    public static final String RESULT_OBJECT = "resultObject";
    public static final String MSG_NETWORK_UNAVAILABLE = "MSG_NETWORK_UNAVAILABLE";
    public static final String MSG_CODE_RETURN_OK = "10000";
    public static final String MSG_CODE_NO_MATCHED_RECORD = "10001";
    public static final String MSG_CODE_USER_EXIST = "10002";
    public static final String MSG_CODE_SYS_ERROR = "10999";
    public static final String MSG_CODE_CARPARK_NOT_EXIST = "23001";
    // Define for parameter
    public static final String BLANK = "";
    public static final String PERMISSION_ID = "permission_id";
    public static final String USER_NAME = "login.loginName";
    public static final String EMAIL = "email";
    public static final String PASSWORD = "login.password";
    public static final String GENDER = "gender";
    public static final String ADDRESS = "address";
    public static final String PHONE = "phone";
    
    public static final String USER_ID = "userId";
    public static final String CURRENT_LOCATION_NAME = "currentLocationName";
    public static final String ADD_FAVORITE_URL = "/carpark/mobile/getUserCarparkList.do";
    public static final String DELETE_FAVORITE_URL = "/carpark/mobile/getUserCarparkList.do";
    
    public static final String LATITUDE = "latitude";
    public static final String LONGITUDE = "longitude";
    
    
    
    public static final String LOGIN_WAIT_INFO = "Please wait while login...";
    public static final String EBOOK_BOOK_LOGIN_ERROR_INFOR = "Invalid user name or password.";
    public static final String EBOOK_BOOK_LOGIN_USER_PASSWORD_REQUIRE = "User name and password are required.";
    public static final String EBOOK_BOOK_CHECK_NETWORK_ISAVAILABLE = "Your network is unavailable, please try again later";
}
